package com.hhq.usercenter.domain.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hhq.common.domain.model.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * <p>Description: 用户模型 </p>
 *
 * @author : xiaodong.yang
 * @date : 2024/1/5 15:45
 */
@Table(name = "t_user")
@Entity
@TableName("t_user")
@Setter
@Getter
@org.hibernate.annotations.Table(appliesTo = "t_user", comment = "用户表")
public class UserModel extends BaseModel {

    /**
     * 用户名称
     */
    @ApiModelProperty(value = "用户名称")
    @Column(nullable = false, columnDefinition = "varchar(255) default '' comment '用户名称'")
    private String userName;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    @Column(nullable = false, columnDefinition = "varchar(255) default '' comment '密码'")
    private String password;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号")
    @Column(columnDefinition = "varchar(255) default '' comment '手机号'")
    private String mobile;

    /**
     * 性别:0-男；1-女
     */
    @ApiModelProperty(value = "性别:0-男；1-女")
    @Column(nullable = false, columnDefinition = "bit(1) default 0 comment '性别:0-男；1-女'")
    private Integer sex;
}
